﻿<local:BaseDataVisualizer
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"	
    xmlns:local="clr-namespace:BrainTechLLC.Silverlight.Controls;assembly=BrainTechLLC.Silverlight.Controls"
	x:Class="BrainTechLLC.Silverlight.ClientApplication.EditState" Width="Auto" Height="Auto" 
    xmlns:loc="clr-namespace:BrainTechLLC.Silverlight.ClientApplication"     
    xmlns:System="clr-namespace:System;assembly=mscorlib" >
    <StackPanel Orientation="Vertical" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Name="gridData" Background="#FFFFFFFF">
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="140"/>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="140"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>

            <ContentControl Content="State Name:" Style="{StaticResource TextBlockContentStyle}" VerticalAlignment="Center" />
            <TextBox Grid.Column="1" Margin="0,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Center" Text="{Binding Mode=TwoWay, Path=StateName}" Style="{StaticResource TextBoxNoScroller}" />
            <ContentControl Grid.Column="2" Content="Base Resched Freq:" VerticalAlignment="Center" Style="{StaticResource TextBlockContentStyle}"/>
            <TextBox Grid.Column="3" Margin="0,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Center" Text="{Binding Mode=TwoWay, Path=BaseRescheduleFrequency}"  Style="{StaticResource TextBoxNoScroller}" />
        </Grid>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto">
            <local:DataVisualizer Width="Auto" Height="Auto"
                                      x:Name="editCommandToPerform" HorizontalAlignment="Stretch"
                                      local:WindowContainer.IsOpen="False" VerticalAlignment="Stretch"
                                      Loaded="EditCommand_Loaded" DataToVisualize="{Binding Mode=OneWay, Path=BaseStateAction}" WindowlessMode="True" 
                                      IsCollection="False" VisualizerName="EditCommandToPerform" 
                                      Template="{StaticResource WinContainer}" DescriptionTextString="Edit Command" WindowBorder="#FF8F8600" HeaderBackground="#FF025A47" />
        </Grid>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto">
            <local:DataVisualizer Width="Auto" Height="Auto"
                                      x:Name="editStateProperties" HorizontalAlignment="Stretch"
                                      local:WindowContainer.IsOpen="False" VerticalAlignment="Stretch"
                                      Loaded="ShowProps_Loaded" WindowlessMode="True" Owner="{Binding}"
                                      IsCollection="True" VisualizerName="ShowPropertiesControl" 
                                      Template="{StaticResource WinContainer}" DataToVisualize="{Binding Mode=OneWay, Path=ObservableProperties}" DescriptionTextString="State Properties" WindowBorder="#FF8B0084" HeaderBackground="#FF050785" />
        </Grid>
    </StackPanel>
</local:BaseDataVisualizer>